//
//  Header.h
//  EastMarket
//
//  Created by 李鹏程 on 16/10/12.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#ifndef Header_h
#define Header_h

#import "GlobalUnit.h"
#import "AFNetworking.h"
#import "SVProgressHUD.h"
#import "UIImageView+AFNetworking.h"
#import "UIImageView+WebCache.h"
#import "RXPopTipView.h"
#import "MJRefresh.h"
#import "ActionSheetStringPicker.h"
#import <ASIHTTPRequest/ASIHTTPRequest.h>
#import "UIView+Frame.h"

#endif /* Header_h */

//判断是否为4s
#define IPHONE4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,960), [[UIScreen mainScreen] currentMode].size) : NO)
//判断是否为5
#define IPHONE5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,1136), [[UIScreen mainScreen] currentMode].size) : NO)
//判断是否为6
#define IPHONE6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
//判断是否为6plus
#define IPHONE6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242,2208), [[UIScreen mainScreen] currentMode].size) : NO)

#define IOS6 ([[[UIDevice currentDevice] systemVersion] doubleValue]<7.0 ? YES : NO)

/**
 255, 80, 0主色调 #FF5000
 */
#define EastMarket_MainToneColor ([UIColor colorWithRed:255.0/255 green:80.0/255 blue:0.0/255 alpha:1])
//#define EastMarket_backgroundColor ([UIColor colorWithRed:247.0/255 green:247.0/255 blue:247.0/255 alpha:1])
#define EastMarket_backgroundColor ([UIColor colorWithRed:235.0/255 green:243.0/255 blue:239.0/255 alpha:1])

#define EastMarket_bordColor ([UIColor colorWithRed:240.0/255 green:240.0/255 blue:240.0/255 alpha:1])
#define EastMarket_hintFontColor ([UIColor colorWithRed:223.0/255 green:223.0/255 blue:223.0/255 alpha:1])
#define EastMarket_darkGreyFontColor ([UIColor colorWithRed:99.0/255 green:99.0/255 blue:99.0/255 alpha:1])
#define EastMarket_darkBlackFontColor ([UIColor colorWithRed:61.0/255 green:65.0/255 blue:69.0/255 alpha:1])

#define EastMarket_BlueColor ([UIColor colorWithRed:12.0/255 green:185.0/255 blue:253.0/255 alpha:1])

#define EastMatket_ConsumerHotLineColor ([UIColor colorWithRed:12.0/255 green:185.0/255 blue:253.0/255 alpha:1])

#define EastMatket_AddressColor ([UIColor colorWithRed:255.0/255 green:252.0/255 blue:225.0/255 alpha:1])

#define EastMatket_OrderNameBackgroundColor ([UIColor colorWithRed:255.0/255 green:255.0/255 blue:249.0/255 alpha:1])

#define EastMarket_HomePageBackgroundColor ([UIColor colorWithRed:235.0/255 green:243.0/255 blue:239.0/255 alpha:1])

#define EastMarket_UnderlineColor ([UIColor colorWithRed:236.0/255 green:236.0/255 blue:236.0/255 alpha:1])
#define EastMarket_TabbarBackColor ([UIColor colorWithRed:247.0/255 green:247.0/255 blue:248.0/255 alpha:1])
#define EastMarket_TabbarTopLineBackColor ([UIColor colorWithRed:239.0/255 green:239.0/255 blue:244.0/255 alpha:1])





#ifdef DEBUG
#define debugLog(...) NSLog(__VA_ARGS__)
#define debugMethod() NSLog(@"%s", __func__)
#else
#define debugLog(...)
#define debugMethod()

#define Token

#endif

#define TopBarHeight (44 + (IOS6 ? 0 : 20))
#define TabBarHeight 49
// 英文键盘高度                   216.0f
// 中文键盘高度                     252.0f
// 中文九宫格键盘未输入高度         184.f
// 中文九宫格输入键盘高度                          251.5f
#define KeyboardHeight (IOS6 ? 216 : 252)

//获取屏幕 宽度、高度
#define SCREEN_FRAME ([UIScreen mainScreen].bounds)
#define SCREEN_WIDTH  [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height

